import { createApp } from 'vue'
// 引入通用样式
import  "normalize.css"

// 引入路由
import router from './router'

// 引入stoe
import store from './store'
// 国际化
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 引入常用反馈组件的样式
import 'element-plus/theme-chalk/el-message.css'
import 'element-plus/theme-chalk/el-message-box.css'

import App from './App.vue'
// 全局组件注册
import TablePro from './components/table-pro/index.vue'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 全局组件注册
app.component('TablePro', TablePro)

app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(router)
app.use(store)
app.mount('#app')
